package com.stary.pay.wxpay.api.request;

import java.util.Map;

import com.stary.pay.wxpay.api.WxpayAuthRequest;
import com.stary.pay.wxpay.api.WxpayConstants;
import com.stary.pay.wxpay.api.response.WxpayAuthUserInfoResponse;
import com.stary.pay.wxpay.api.util.WxpayHashMap;

/**
 * <p>wxpayauth userinfo request</p>
 * @author stary {@link stary1993@qq.com}
 * @since 2019-6-4
 */
public class WxpayAuthUserInfoRequest implements WxpayAuthRequest<WxpayAuthUserInfoResponse> {
	
	/**
	 * 通过code换取网页授权access_token接口
	 */
	private String bizContent;
	
	public String getBizContent() {
		return bizContent;
	}

	public void setBizContent(String bizContent) {
		this.bizContent = bizContent;
	}
	
	public String serverDomain() {
		return WxpayConstants.DOMAIN_API;
	}

	public Map<String, String> getTextParams() {
		WxpayHashMap txtParams = new WxpayHashMap();
		txtParams.put(WxpayConstants.BIZ_CONTENT, this.bizContent);
		return txtParams;
	}

	public Class<WxpayAuthUserInfoResponse> getResponseClass() {
		return WxpayAuthUserInfoResponse.class;
	}

}
